package com.tm.d1_api_object;

/**
 * 2024/5/23 Cjj Object方法 9：16
 */
public class Test {
    public static void main(String[] args) {
        Student student = new Student("小明",22);
        System.out.println(student);

        Student s = new Student("小明", 22);
        System.out.println(s.equals(student));

        Student st = new Student("小红", 22);
        System.out.println(st==s);


    }
}
